module.exports = config => {
  // socket.io
  config.io = {
    init: {
      wsEngine: 'ws', //ws 引擎
    },
    namespace: {
      '/': {
        connectionMiddleware: [
          //'auth', 连接中间件
        ],
        packetMiddleware: [],
      }
    },
    redis: {
      host: '127.0.0.1',
      port: 6379,
      auth_pass: '',
      db: 2,
    },
  }
}